<script>
	export default {
		onResize() {
		   uni.getSystemInfo({
		    success: function(res) {
		     
		     console.log(res.windowWidth);
		     console.log(res.windowHeight);
		     if (res.windowWidth > res.windowHeight) {
		      
		      plus.screen.lockOrientation('landscape');
		     } else {
		
		       plus.screen.lockOrientation('portrait');
		     }
		    }
		   });
		  },
		onLaunch: function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
